package simpleauth

import uk.ac.soton.itinnovation.grid.client.proxy.ServiceFactory;
import uk.ac.soton.itinnovation.grid.client.proxy.HelperProxyFactory;

class User {
	String email
	String userName
	String password
	String toString()
		{"$userName"}
		
	String keystoreLocation
	String subjectDN
			
	ServiceFactory serviceFactory;
	
	HelperProxyFactory helperProxyFactory; 
		
	def static transients = ['serviceFactory','helperProxyFactory']
	
	def static constraints = 
	{
		email(email:true)
		password(blank:false, password:true)
		userName(blank:false,unique:true)
		keystoreLocation(nullable:true)
		subjectDN(nullable:true)
	}
}
